lib/commit: Added new ostree_repo_write_archive_to_mtree_from_fd()
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>
Tue, 21 May 2019 13:01:09 +0000 (22:01 +0900)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 28 May 2019 17:03:22 +0000 (17:03 +0000)
commitda4d0245af9b937c7fe65540f022bc77bc0354ed
treebd8b2f8f575c7bd89b1ccc653e730d7114f618bb
parent1c0933b40ca090d3c748bda69eb9a1957a136e72
lib/commit: Added new ostree_repo_write_archive_to_mtree_from_fd()

Similar to ostree_repo_write_archive_to_mtree(), but takes
a file descriptor to read the archive from instead of mandating
a file path.

Usefull for importing archives into an OSTree repo over a socket
or from standard input in command line tools.

Closes: #1862
Approved by: jlebon
apidoc/ostree-sections.txt
src/libostree/libostree-devel.sym
src/libostree/ostree-libarchive-private.h
src/libostree/ostree-repo-libarchive.c
src/libostree/ostree-repo.h